<!DOCTYPE html>
<html   xmlns="http://www.w3c.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"
        xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head/>
    <h:body>
        <h:form>
            <p:panel id="panel" header="Form" style="margin-bottom:10px;">
                <p:messages id="messages" />
                <h:panelGrid columns="2" cellpadding="5">
                    <h:outputLabel for="name" value="Standard Label:" />
                    <p:inputText id="name" required="true" />

                    <p:outputLabel for="extended" value="Extended Label:" />
                    <p:inputText id="extended" required="true" />

                    <p:outputLabel for="number" value="Number:" />
                    <p:spinner id="number" value="0"/>
                </h:panelGrid>
            </p:panel>

            <p:commandButton value="Submit" update="panel"  />
        </h:form>
    </h:body>
</html>
